package com.yipinhouse.signing.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.signing.client.param.IntentionMoneyParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;


/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "intentionMoneyManageClient",name="signing",path="intentionMoney")
public interface  IntentionMoneyManageClient {
    /**
     * 新增意向金记录
     * @param intentionMoneyParam
     * @return
     * @throws InterruptedException
     */
    @PostMapping("insertIntentionMoney")
    Result insertIntentionMoney(@RequestBody IntentionMoneyParam intentionMoneyParam) throws InterruptedException;

    /**
     * 意向金支付
     * @param intentionMoneyNum
     */
    @GetMapping("pay")
    void pay(@RequestParam("intentionMoneyNum") String intentionMoneyNum) throws Exception;


    /**
     * 支付宝支付回调
     */
    @PostMapping("payBack")
    void payBack();
}
